<body>
<div class="path fn-clear"><span class="fb">首页</span><a href="###">管理员</a></div>
<div class="button-nav">
	<button url="{url('index/adduser')}" title="添加用户" class="button button-blank win"><i class="iconfont" title="管理员">&#xF03E;</i> 添加用户</button>
</div>
<div class="m5">
<table class="table table-bordered table-striped">
<thead>
	<tr><th class="w20 fn-tac">#</th><th>用户名称</th><th class="w150 fn-tac">最后登录时间</th><th class="w100 fn-tac">最后登录IP</th><th class="w60 fn-tac">管理操作</th></tr>
</thead>
<tbody>
{loop $info $rs}
<tr>
	<td class="w20 fn-tac">{$rs[id]}</td>
	<td>{$rs[username]}</td>
	<td class="w150 fn-tac">{date('Y-m-d H:i:s',$rs['login_time'])}</td>
	<td class="w100 fn-tac">{$rs[login_ip]}</td>
	<td class="w60 fn-tac">
		<a class="win" href="###" title="编辑用户" url="{url('index/adduser',array('fid'=>$rs[id]))}">编辑</a>
		<a class="del" href="###" url="{url('index/user',array('fid'=>$rs[id],'act'=>'del'))}">删除</a>
	</td>
</tr>
{/loop}
</tbody>
</table>
</div>
<script type="text/javascript">
Do('base','Dialog',function(){
  $(".win").click(function(){
    $(this).cpWindows();
  });
  $('.del').click(function(){
    $(this).cpDelete();
  });
})
</script>
</body>